Skip to content

spir-v: Fix .storage_buffer pointer indexing#25641

Merged
alexrp merged 1 commit into
ziglang:masterfrom
jonascloud:fix1
Oct 23, 2025
Merged

spir-v: Fix .storage_buffer pointer indexing#25641
alexrp merged 1 commit into
ziglang:masterfrom
jonascloud:fix1

Conversation

@jonascloud

Copy link
Copy Markdown
Contributor

Renames arePointersLogical to shouldBlockPointerOps for clarity.
Adds capability check to allow pointer operations on .storage_buffer when the variable_pointers capability is enabled.

This is a minimal change that fixes the immediate issue. Once PR #24681 merges, this should be updated to use variable_pointers_storage_buffer instead of variable_pointers for more fine-grained control.

Fixes #25638

@alexrp

alexrp commented Oct 20, 2025

Copy link
Copy Markdown
Member

cc @alichraghi

Comment thread src/target.zig Outdated
Renames arePointersLogical to shouldBlockPointerOps for clarity
adds capability check to allow pointer ops on .storage_buffer when
variable_pointers capability is enabled.

Fixes ziglang#25638
@jonascloud

Copy link
Copy Markdown
Contributor Author

@alexrp Could you restart CI and merge? Thanks!

@alexrp alexrp self-assigned this Oct 22, 2025
@alexrp alexrp merged commit e5fcc81 into ziglang:master Oct 23, 2025
7 of 9 checks passed
@alexrp alexrp removed their assignment Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SPIR-V: .storage_buffer address space incorrectly blocks pointer indexing

3 participants